package demo10;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class StudentTest {

    @Test
    public void test1() {
        ApplicationContext context = new AnnotationConfigApplicationContext("demo10");
        final Student stu = context.getBean("stu", Student.class);
        System.out.println(stu);
    }
}
